<template>
  <div class="loading">
    <span></span>
    <span></span>
    <span></span>
    <span></span>
    <span></span>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.loading {
  width: 80px;
  height: 40px;
  margin: 0 auto;
  //   margin-top: 100px;
}
.loading span {
  display: inline-block;
  width: 8px;
  //   height: 100%;
  border-radius: 4px;
  background: rgb(56, 101, 197);
  animation: load 0.4s ease infinite;
  margin: 0 1px;
}

@keyframes load {
  0%,
  100% {
    height: 40px;
    background: rgb(127, 224, 208);
  }
  50% {
    height: 70px;
    margin: -15px 0;
    background: rgb(141, 206, 190);
  }
}
.loading span:nth-child(2) {
  animation-delay: 0.1s;
}
.loading span:nth-child(3) {
  animation-delay: 0.2s;
}
.loading span:nth-child(4) {
  animation-delay: 0.3s;
}
.loading span:nth-child(5) {
  animation-delay: 0.4s;
}
// .loading span:nth-child(2) {
//   animation-delay: 0.2s;
// }
// .loading span:nth-child(3) {
//   animation-delay: 0.4s;
// }
// .loading span:nth-child(4) {
//   animation-delay: 0.6s;
// }
// .loading span:nth-child(5) {
//   animation-delay: 0.8s;
// }
</style>
